<script setup lang="ts">
import { onMounted } from 'vue'
import tabbar from '@/components/tab-bar.vue'
import { useRoute } from 'vue-router'

const route = useRoute()

onMounted(() => {
  console.log('app mounted')
})
</script>

<template>
  <router-view></router-view>
  <!-- 根据路由元信息决定是否显示底部导航栏 -->
  <tabbar v-if="route.meta.showTabBar !== false"/>

</template>

<style scoped>
</style>
